<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>内容过滤器示例</title>
    <script src="C:\Users\86198\Desktop\yl-dsj\jquery-3.6.0.min.js"></script>
    <script>
      $(document).ready(function() {
         $("td: empty").css("background","grey")
      });
    </script>
</head>
<body>
    <table id="employees" width="200" border="1">
        <tr><th>ID</th><th>姓名</th><th>性别</th><th>年龄</th><th>学历</th></tr>
        <tr>
            <td>001</td>
            <td>张三</td>
            <td>女</td>
            <td>21</td>
            <td>大专</td>
        </tr>
        <tr>
            <td>002</td>
            <td>李四</td>
            <td>男</td>
            <td>21</td>
            <td>大专</td>

        </tr>
        <tr>
            <td>003</td>
            <td>王五</td>
            <td>男</td>
            <td>30</td>
            <td>本科</td> 
        </tr>
    </table>
    
</body>
</html>